package com.xstech.library.rxjavahttp;


/**
 * @author: Allen.
 * @date: 2018/3/8
 * @description: 所有接口地址集
 */
public class ApiAddress {
    // app升级与日志存储服务器
    public static String appVersionLogUrl = "http://218.77.60.210:38000/operate_app/";
    public static String logUrl = appVersionLogUrl + "app_log/";
    public final static String appUrl = appVersionLogUrl + "app_version/app-version-config.txt";

    /**
     * 更新app与上传日志
     */
    public final static String versionApi = "https://xsprod.console.xingshentech.com/";     //这里要写死还没登陆的时候就可以获取app版本
    //        public final static String versionApi = "https://xstest.console.xingshentech.com:9443/";
    public final static String clienToken = "/api/v1/auth/client";     //通过设备id认证拿token
    public final static String uploadProcedureLog = "api/v1/fileServer/procedureLogInfo/uploadProcedureLog";     //程序日志上传
    public final static String getVersion = "api/v1/fileServer/procedureInfo/latestVersionProcedureInfo";     //获取最新版本信息


    public static String api_map = "http://developer.xsmapserver.xingshentech.com:81/";
    public final static String api_dev = "https://developer.map.xingshentech.com:9443/";       //地图服务的接口 测试
    public final static String api_prod = "http://developer.xsmapserver.xingshentech.com:81/";       //地图服务的接口 生产
    public final static String api_hw = "https://xsmapserver.public.xingshentech.com:9443/";       //地图服务的接口 新测试
//    public final static String api_prod = "http://lt.xsmapserver.xingshentech.com:42900/api/";       //乐天 地图服务 生产


    public static String websocketApi = "xsprod.console.xingshentech.com";
    public static String websocketApi_dev = "xstest.console.xingshentech.com";         //测试
    public static String websocketApi_prod = "xsprod.console.xingshentech.com";         //生产
    //    public static String websocketApi_prod = "tprod.console.xingshentech.com";         //生产
    public static String websocketApi_hw = "center.public.xingshentech.com";         //新测试

    //http https的端口  websocket的端口连接写在SDKAdapter了
    public static String port = ":443";
    public static String port_9000 = ":9000";
    public static String port_9443 = ":9443";
    public static String port_81 = ":81";
    public static String websocket_Port = websocketApi + port;//登录和获取车辆列表等9000 websocket连接是9001

    //乐天
//    public static String port = ":42900";
//    public static String websocket_Port = websocketApi + port;
//    public static String sdk_websocket = "ws://" + websocketApi + ":42909/api/v1/ws/gateway/";

    public static String api_center = "https://" + websocket_Port + "/";

    public static String carrayWebSocket = "wss://" + ApiAddress.websocketApi + "/wsapi/api/v1/ws/gateway/";
    public static String carrayWebSocket_prod_suffix = "/wsapi/api/v1/ws/gateway/";
    public static String carrayWebSocket_dev_suffix = ":9443/wsapi/api/v1/ws/gateway/";
    public static String carrayWebSocket_prod_hw_suffix = ":9443/wsapi/api/v1/ws/gateway/";


    //数据采集获取的标签接口地址
    public final static String dataGatherList_Tags = "https://xstest.console.xingshentech.com:9443/dataapi/manager/tags/listTags";
    /**
     * center相关
     */
    public final static String mainRoute = "api/center";
    public final static String userLogin2 = "/api/v1/auth/login";
    public final static String userMenu = "/api/v1/rbac/res/menu";

    public final static String siteInfo = "/api/v1/siteInfo";    //站点列表
    public final static String siteInfoQueryContent = "/api/v1/siteInfo/querySiteWithQueryContent";    //站点列表带搜索条件

    public final static String vehicle = "/api/v1/siteInfo/{id}/vehicle";     //站点下的车辆
    public final static String deviceControl = "/api/v1/control/deviceControl";     //设备控制休眠唤醒

    public final static String stopCharge = "/api/v1/control/chargeControl";     //设备控制休眠唤醒
    public final static String getVehicleDeviceStatus = "/api/v1/control/getVehicleDeviceStatus";     //获取设备状态:

    public final static String getAllVehiclePosition = "/api/v1/vehicle/status/getAllVehiclePosition";     //显示在地图上的车


    /**
     * 地图服务相关接口
     */
//    public final static String userLogin = "v1/auth/login";
    public final static String userLogin = "api/userLogin/login";

    //获取用户信息
    public final static String userInfo = "api/v1/auth/info";

    //刷新token
    public final static String reflashToken = "api/v1/auth/reflashToken";

    //获取站点列表
    public final static String getUserSite = "api/v1/userSite/site";

    //获取站点用户车辆列表
//    public final static String getVehicle="v1/userSite/{id}/userVehicle?pageSize=150&pageNo=1";
    public final static String getVehicle = "api/car/findCarlistOfSite?";

    //修改用户信息
    public final static String updateUserInfo = "api/v1/rbac/user/save/login";

    //获取权限
    public final static String getUserRule = "api/v1/rbac/res/user";

    //站点新增
    public final static String addSite = "api/site/addSite";

    //站点新增
    public final static String addCarInfo = "api/car/addCarInfo";

    //获取站点列表
    public final static String getSiteList = "api/site/findSites";

    //获取地图
    public final static String getMapList = "api/map/findMapNameListForApp?";

    //分享地图
    public final static String mapShare = "api/mapShare/addShareMap";

    //检查登录
    public final static String checkLogin = "api/refeash/CheckLoginStatusForApp";


    public static String api_push = "https://monitor.prod.xingshentech.com/";
    public static String api_push_dev = "http://xsdev.xingshentech.com:8200/";
    public static String api_push_prod = "https://monitor.prod.xingshentech.com/";

    /**
     * push  监控推送相关接口
     */

    //查询用户订阅的车辆
    public final static String listSubscriptionVehicle = "monitorapi/r2/v1/monitoringPlatform/operateApp/listSubscriptionVehicle";

    //取消单个车辆订阅
    public final static String cancelSubscriptionCar = "monitorapi/r2/v1/monitoringPlatform/operateApp/cancelSubscriptionCar";

    //新增单个车辆订阅
    public final static String subscriptionOneCar = "monitorapi/r2/v1/monitoringPlatform/operateApp/subscriptionOneCar";

    //查询用户订阅的消息类型
    public final static String listSubscriptionTopic = "monitorapi/r2/v1/monitoringPlatform/operateApp/listSubscriptionTopic";

    //更新订阅消息类型
    public final static String updateSubscriptionTopic = "monitorapi/r2/v1/monitoringPlatform/operateApp/updateSubscriptionTopic";

    //获取消息推送记录列表
//   listTopicMessage(String size, String current, String vehicleCode, String topicName,String startTime, String endTime)
    public final static String listTopicMessage = "monitorapi/r2/v1/monitoringPlatform/topicMessage/listTopicMessage";


    public final static String monitor_siteInfo = "monitorapi/r2/v1/monitoringPlatform/center/siteInfo";


    /**
     * 通过增删改查手机位置点信息
     */
    public static String api_mobilePoint = "http://172.16.1.170:8800/";

    public final static String listPointLocationInfo = "api/v1/locationRecord/pointLocationInfo/listPointLocationInfo";
    public final static String createPointLocationInfo = "api/v1/locationRecord/pointLocationInfo/createPointLocationInfo";
    public final static String deletePointLocationInfo = "api/v1/locationRecord/pointLocationInfo/deletePointLocationInfo";
    public final static String updatePointLocationInfo = "api/v1/locationRecord/pointLocationInfo/updatePointLocationInfo";


    /**
     * 业务监控相关
     */
    public static String apiMonitor = "https://monitor.prod.xingshentech.com/monitorapi/r2/";
    public final static String apiMonitor_dev = "http://172.16.1.78:7777/api/";
    public final static String apiMonitor_prod = "https://monitor.prod.xingshentech.com/monitorapi/r2/";

    public final static String monitor_getWorkOrder = "v1/monitoringPlatform/workOrder/queryByDate";

    public final static String monitor_getWorkOrderById = "v1/monitoringPlatform/workOrder";

    public final static String monitor_finishWorkOrder = "v1/monitoringPlatform/workOrder/finishWorkOrder";

    public final static String monitor_enforceFinish = "v1/monitoringPlatform/workOrder/enforceFinish";

    public final static String monitor_getPlanData = "v1/monitoringPlatform/taskDataController/getPlanData";

    public final static String monitor_orderCompletedDegree = "v1/monitoringPlatform/OrderData/orderCompletedDegree";

    public final static String monitor_stationOrder = "v1/monitoringPlatform/OrderData/stationOrder";

    public final static String monitor_enforceArrived = "v1/monitoringPlatform/taskDataController/enforceArrived";

    public final static String monitor_cancelTask = "v1/monitoringPlatform/taskDataController/cancelTask";

    public final static String monitor_suspendTask = "v1/monitoringPlatform/taskDataController/suspendTask";

    public final static String monitor_recoveryTask = "v1/monitoringPlatform/taskDataController/recoveryTask";

    public final static String monitor_changeVehicle = "v1/monitoringPlatform/vehicleStatus/changeVehicle";

    public static String monitor_webSocketServer = "v1/monitoringPlatform/webSocketServer" + "/websocket";


    //OTA的地址和MQTT地址
    public static String api_ota = "https://xsprod.console2.xingshentech.com/baseapi/";
    public static String api_ota_dev = "https://xstest.console2.xingshentech.com:9443/baseapi/";
    public static String api_ota_prod = "https://xsprod.console2.xingshentech.com/baseapi/";
    public static String api_ota_dx = "https://center2.public.xingshentech.com:9443/baseapi/";

    public static String api_ota_mqtt = "wss://console.api.xingshentech.com/ws/mqtt";
    public static String api_ota_mqtt_dev = "wss://xstest.console.xingshentech.com:9443/ws/mqtt";
    public static String api_ota_mqtt_prod = "wss://console.api.xingshentech.com/ws/mqtt";
    public static String api_ota_mqtt_dx = "wss://center.public.xingshentech.com:9443/ws/mqtt";

    //查询车辆程序版本
    public final static String queryVehicleProgramVersion = "ota/vehicle/version/manager/queryVehicleProgramVersion";
    //批量ota升级（内部调用）
    public final static String batchVersionControlInner = "ota/vehicle/version/manager/batchVersionControlInner";
    //查询车辆ota任务状态（内部调用
    public final static String queryVehicleOtaStatus = "ota/vehicle/version/manager/queryVehicleOtaStatus";
}
